package com.liuxu.supernews;

import android.app.Application;
import android.content.Context;

import java.util.HashMap;
import java.util.Map;

public class MyApplication extends Application {
    public static Context context;
    public static boolean permission;
    public static boolean update;
    public static boolean must;
    public static String updateinfo;
    public static Map topics=new HashMap();
    @Override
    public void onCreate() {
        super.onCreate();
        init();
    }
    public void init(){
        context = getApplicationContext();
        permission=false;
        topics.put("200","成功");
        topics.put("100","失败");
        topics.put("10","注册码错误");
        topics.put("口令",getResources().getString(R.string.tourl));
        topics.put("注册",getResources().getString(R.string.reurl));
        topics.put("运行",getResources().getString(R.string.idurl));
        topics.put("解绑",getResources().getString(R.string.caurl));
        topics.put("更新",getResources().getString(R.string.upurl));
    }
    public static Context getContext() {
        return context;
    }

    public static Map getTopics(){
        return topics;
    }
    public  void setUpdateinfo(String updateinfo){
        this.updateinfo=updateinfo;
    }
    public String getUpdateinfo(){
        return updateinfo;
    }

}
